//
//  UIPickerView+BCPrivate.m
//  Pods
//
//  Created by Basic on 2017/1/6.
//  hook工具类，常用属性
//

#import "UIPickerView+BCPrivate.h"
#import <objc/runtime.h>


@implementation UIPickerView (BCPrivate)


#pragma mark -  kdhTag
-(void)setKdhTag:(NSInteger)kdhTag
{
    objc_setAssociatedObject(self, @selector(kdhTag), @(kdhTag), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
-(NSInteger)kdhTag
{
    return [objc_getAssociatedObject(self, @selector(kdhTag)) integerValue];
}


#pragma mark -  kdhTag
-(void)setKdhData:(id )kdhData
{
    objc_setAssociatedObject(self, @selector(kdhData), kdhData, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
-(id )kdhData
{
    return objc_getAssociatedObject(self, @selector(kdhData));
}

@end
